import java.awt.Color;
import java.awt.Container;

import javax.swing.JInternalFrame;


public class animation {

	
	public JInternalFrame add(Container container, int openFrameCount){
		JInternalFrame palette = new JInternalFrame(("New Animation " + (++openFrameCount)), true, true, true, true);
		palette.setVisible(true);
		//palette.toFront();
		palette.setSize(container.getWidth(), container.getHeight());
		palette.setBackground(Color.blue);
		
		//palette.moveToFront();
		
		return palette;
	}
}
